<?php 
    $term = '';
    $taxonomy	= 'category';
    $num_post	= 9;
    $post_type	= 'post';						   
    $field		= 'slug';				    
    $metakey	= $wpdb->prefix.'display';
    $metavalue  = 'display';	
    	            
    $terms = get_the_terms($postID,$taxonomy);
    
    if($terms)
    {
    	$i=1;					
    	foreach ($terms as $value) 
    	{
    		if($i==1)
    			$term = $value->slug;
    		$i++;
    	}	
    						
    	?>
        <div class="internet-booking"><span class="line-color-red"></span><h6>Hotels Other</h6></div>
        <div class="clear"></div>
        <ul class="hotels-other">
            <?php            
		    $hotels = db_query_posts_similar_in_terms_child_nopage($postID,$num_post, $post_type, $taxonomy, $field, $term, $metakey, $metavalue);
		    
		    query_posts($hotels);
		    if(have_posts())
		    {				                    	    
			    while (have_posts())
			    {
			    	the_post();
			    	?>
			    	<li><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a></li>
			    	<?php 
			    }
		    }
		    else 
		    {
		 		echo '<li> No post similar! </li>';
		    }  
           ?>        	
        </ul>  
        <?
    }
?>
